home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3
/
SLGetSpooler.z
/
SLGetSpooler
Wrap
Text File
|
1998-10-30
|
6KB
|
132 lines
SSSSLLLLGGGGeeeettttSSSSppppoooooooolllleeeerrrr((((3333)))) IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo SSSSLLLLGGGGeeeettttSSSSppppoooooooolllleeeerrrr((((3333))))
NNNNAAAAMMMMEEEE
SLGetSpooler, SLSetSpooler - gets/sets the default spooling system
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
####iiiinnnncccclllluuuuddddeeee <<<<ssssppppoooooooollll....hhhh>>>>
iiiinnnntttt SSSSLLLLGGGGeeeettttSSSSppppoooooooolllleeeerrrr((((uuuunnnnssssiiiiggggnnnneeeedddd iiiinnnntttt ****ddddeeeeffffaaaauuuullllttttpppp,,,,
uuuunnnnssssiiiiggggnnnneeeedddd iiiinnnntttt ****aaaavvvvaaaaiiiillllaaaabbbblllleeeepppp))));;;;
iiiinnnntttt SSSSLLLLSSSSeeeettttSSSSppppoooooooolllleeeerrrr((((uuuunnnnssssiiiiggggnnnneeeedddd iiiinnnntttt ddddeeeeffffaaaauuuulllltttt))));;;;
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
The _l_i_b_s_p_o_o_l library provides a common C language interface to two UNIX
print spooling systems, AT&T System V and BSD. The first _l_i_b_s_p_o_o_l
function called automatically determines which of the two spooling
systems is available and sets a default spooling system for use by
subsequent _l_i_b_s_p_o_o_l functions. The default spooling system set is
determined by the following table:
Available Spoolers Default
_____________________________
None None
BSD BSD
System V System V
System V and BSD System V
A spooling system is considered available if the daemon for the spooling
system is found to be running on the system.
The _S_L_G_e_t_S_p_o_o_l_e_r function returns the available spooling systems and the
currently set default spooling system. The _S_L_S_e_t_S_p_o_o_l_e_r function allows a
new default spooling system to be set for use by subsequent _l_i_b_s_p_o_o_l
functions. Note that each _l_i_b_s_p_o_o_l function automatically establishes a
default spooling system if one has not been set. Therefore, a call to
_S_L_S_e_t_S_p_o_o_l_e_r is necessary only when it is desired to set a spooler other
than the current default.
_d_e_f_a_u_l_t_p This is the currently set default spooling system that
will be used by subsequent _l_i_b_s_p_o_o_l functions. The value
is one of:
SL_SPOOLER_NONE - No default currently set
SL_SPOOLER_BSD - BSD is default
SL_SPOOLER_SYSV - System V is default
_d_e_f_a_u_l_t This value specifies which spooling system is to be the
default. The value is one of:
SL_SPOOLER_BSD - Set BSD as default
SL_SPOOLER_SYSV - Set System V as default
PPPPaaaaggggeeee 1111
SSSSLLLLGGGGeeeettttSSSSppppoooooooolllleeeerrrr((((3333)))) IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo SSSSLLLLGGGGeeeettttSSSSppppoooooooolllleeeerrrr((((3333))))
_a_v_a_i_l_a_b_l_e_p This parameter indicates the spoolers currently available
on the system. The available spooling systems are
determined by the presence of the daemon for a given
spooling system. The System V spooling system is
considered available for use if the _l_p_s_c_h_e_d daemon is
running. The BSD spooling system is considered available
if the _l_p_d daemon is running. _a_v_a_i_l_a_b_l_e_p is a bit mask of
the available spooling systems. The value is one of:
SL_SPOOLER_NONE - No spooling systems available
SL_SPOOLER_BSD - BSD spooling only
SL_SPOOLER_SYSV - System V spooling only
SL_SPOOLER_BSD |
SL_SPOOLER_SYSV - System V and BSD available
RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
0 is returned if execution was successful. -1 is returned and _S_L_e_r_r_n_o is
set if an execution error has occurred.
EEEEXXXXEEEECCCCUUUUTTTTIIIIOOOONNNN EEEERRRRRRRROOOORRRR CCCCOOOODDDDEEEESSSS
_S_L_G_e_t_S_p_o_o_l_e_r and _S_L_S_e_t_S_p_o_o_l_e_r will fail under the following
circumstances.
SL_ERR_FIND_SPOOLER An error occurred while attempting to determine
the available printer spooling systems.
In addition, _S_L_S_e_t_S_p_o_o_l_e_r will fail under the following circumstances.
SL_ERR_SPOOLER_NONE An invalid spooling system (e.g.
SL_SPOOLER_NONE) has been specified as the
default spooling system.
SL_ERR_NO_SPOOLERS There are no printer spooling systems available.
SL_ERR_SPOOLER_UNKNOWN The spooling system specified is not available.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
SLPerror(3), libspool(3), lpsched(1M), lpd(1M)
PPPPaaaaggggeeee 2222